import request from '@/api/request';
// 入学成绩录入
export const req_ruxue = (arg) => request({ method: 'post', url: '/entry_exam', arg, headerType: "form" });
// 入学成绩查询
export const req_ruxue_chaxun = (stu_id) => request({ method: 'get', url: `/search_entry/${stu_id}`, arg: { stu_id }, headerType: 'form' })
// 入学所有成绩查询
export const req_ruxue_all_chaxun = (stu_id) => request({ method: 'get', url: "/entryexams_all", arg: { stu_id }, headerType: 'form' })


//期中考试录入
export const req_qizhong_luru = (arg) => request({ method: 'post', url: '/mid_exam', arg, headerType: "form" });
// 期中考试查询
export const req_qizhong_chaxun = (stu_id) => request({ method: 'get', url: `/search_mid/${stu_id}`, arg: { stu_id }, headerType: 'form' })
// 期中所有成绩查询
export const req_qizhong_all_chaxun = (stu_id) => request({ method: 'get', url: "/midexams_all", arg: { stu_id }, headerType: 'form' })


//期末考试录入
export const req_qimo_luru = (arg) => request({ method: 'post', url: '/end_exam', arg, headerType: "form" });
// 期末个人考试查询
export const req_qim_chaxun = (stu_id) => request({ method: 'get', url: `/search_end/${stu_id}`, arg: { stu_id }, headerType: 'form' })
// 期末所有成绩查询
export const req_qim_all_chaxun = (stu_id) => request({ method: 'get', url: "/endexams_all", arg: { stu_id }, headerType: 'form' })